/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const userManageRouter = {
  path: '/userManage',
  component: Layout,
  redirect: '/userManage/businessManage',
  name: 'userManage',
  meta: {
    title: '用户管理',
    icon: 'userManage',
    roles: 'NORMAL_ADMIN'
  },
  children: [
    {
      path: 'businessManage',
      component: () => import('@/views/userManage/businessManage'),
      name: 'businessManage',
      meta: {
        title: '商家管理',
        icon: 'orderManage',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'buyingManage',
      component: () => import('@/views/userManage/buyingManage'),
      name: 'buyingManage',
      meta: {
        title: '买手管理',
        icon: 'buyingManage',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'taobaoManage',
      component: () => import('@/views/userManage/taobaoManage'),
      name: 'taobaoManage',
      meta: {
        title: '淘宝号管理',
        icon: 'taobaoManage',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'shopAudit',
      component: () => import('@/views/userManage/shopAudit'),
      name: 'shopAudit',
      meta: {
        title: '商家店铺管理',
        icon: 'taobaoManage',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'cashWithdrawalManagement',
      component: () => import('@/views/userManage/cashWithdrawalManagement'),
      name: 'cashWithdrawalManagement',
      meta: {
        title: '买手提现管理',
        icon: 'bankCardManagement',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'cashWithdrawalManagementForStore',
      component: () => import('@/views/userManage/cashWithdrawalManagementForStore'),
      name: 'cashWithdrawalManagementForStore',
      meta: {
        title: '商家提现管理',
        icon: 'bankCardManagement',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'buyerBankCardManage',
      component: () => import('@/views/userManage/buyerBankCardManage'),
      name: 'buyerBankCardManage',
      meta: {
        title: '买手银行卡管理',
        icon: 'bankCardManagement',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'buyerIdCardManage',
      component: () => import('@/views/userManage/buyerIdCardManage'),
      name: 'buyerIdCardManage',
      meta: {
        title: '买手身份证管理',
        icon: 'bankCardManagement',
        roles: 'NORMAL_ADMIN'
      }
    }
  ]
}

export default userManageRouter
